/* =====================================================
   VARIABLES
===================================================== */

:root {

    --background: #08090d;
    --background-light: #0e1017;

    --text: #f5f5f7;
    --text-muted: #8d919d;

    --primary: #8b5cf6;
    --primary-light: #a78bfa;

    --border: rgba(255, 255, 255, 0.09);

    --max-width: 1200px;
}

 =========================================
   PROJET ESPACE
========================================= */

.space-project {
    position: relative;
    overflow: hidden;

    display: flex;
    gap: 30px;

    padding: 35px;

    min-height: 300px;

    border: 1px solid rgba(100, 180, 255, 0.25);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(93, 70, 255, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(0, 200, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #050816,
            #090d24 50%,
            #03040c
        );

    box-shadow:
        0 0 30px rgba(42, 116, 255, 0.08),
        inset 0 0 40px rgba(80, 100, 255, 0.03);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


/* =========================================
   ÉTOILES EN ARRIÈRE-PLAN
========================================= */

.space-project::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        radial-gradient(circle, white 1px, transparent 1px),
        radial-gradient(circle, rgba(120, 200, 255, 0.8) 1px, transparent 1px);

    background-size:
        80px 80px,
        130px 130px;

    background-position:
        10px 20px,
        40px 70px;

    opacity: 0.25;
}


/* =========================================
   HALO LUMINEUX
========================================= */

.space-project::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    right: -80px;
    bottom: -100px;

    border-radius: 50%;

    background: #4d5cff;

    filter: blur(90px);

    opacity: 0.15;

    pointer-events: none;
}


/* =========================================
   EFFET AU SURVOL
========================================= */

.space-project:hover {
    transform: translateY(-8px);

    border-color: rgba(100, 190, 255, 0.65);

    box-shadow:
        0 15px 50px rgba(30, 100, 255, 0.18),
        0 0 35px rgba(90, 100, 255, 0.12),
        inset 0 0 50px rgba(80, 100, 255, 0.05);
}


/* =========================================
   NUMÉRO DU PROJET
========================================= */

.space-project .project-number {
    position: relative;
    z-index: 2;

    flex-shrink: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    width: 60px;

    padding-top: 5px;

    font-family: "Courier New", monospace;

    font-size: 18px;
    font-weight: bold;

    color: #6fdcff;

    text-shadow:
        0 0 10px rgba(80, 210, 255, 0.8);
}


/* =========================================
   CONTENU
========================================= */

.space-project .project-content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}


/* =========================================
   TYPE DU PROJET
========================================= */

.space-project .project-type {
    margin: 0 0 12px;

    font-family: "Courier New", monospace;

    font-size: 12px;
    letter-spacing: 3px;

    color: #6fdcff;
}


/* =========================================
   TITRE
========================================= */

.space-project h2 {
    margin: 0 0 18px;

    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;

    color: #ffffff;

    text-shadow:
        0 0 20px rgba(100, 180, 255, 0.2);
}


/* =========================================
   DESCRIPTION
========================================= */

.space-project .project-content > p:not(.project-type) {
    margin-bottom: 25px;

    max-width: 600px;

    font-size: 16px;
    line-height: 1.7;

    color: #aeb9d4;
}


/* =========================================
   TECHNOLOGIES
========================================= */

.space-project .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 30px;
}

.space-project .technologies span {
    padding: 8px 14px;

    border: 1px solid rgba(100, 200, 255, 0.25);
    border-radius: 50px;

    background: rgba(50, 100, 180, 0.08);

    font-family: "Courier New", monospace;

    font-size: 12px;
    letter-spacing: 1px;

    color: #9be7ff;

    transition: all 0.3s ease;
}

.space-project .technologies span:hover {
    background: rgba(50, 180, 255, 0.15);

    border-color: #65dfff;

    color: white;

    box-shadow:
        0 0 15px rgba(70, 210, 255, 0.2);
}


/* =========================================
   BOUTON / LIEN
========================================= */

.space-project .project-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 12px 20px;

    border: 1px solid rgba(100, 200, 255, 0.4);
    border-radius: 8px;

    background: rgba(40, 130, 255, 0.08);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.space-project .project-link span {
    font-size: 20px;

    color: #6fdcff;

    transition: transform 0.3s ease;
}

.space-project .project-link:hover {
    background: #318cff;

    border-color: #66dfff;

    color: white;

    box-shadow:
        0 0 25px rgba(50, 150, 255, 0.35);
}

.space-project .project-link:hover span {
    transform: translateX(6px);

    color: white;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .space-project {
        flex-direction: column;

        gap: 15px;

        padding: 25px;

        min-height: auto;
    }

    .space-project .project-number {
        justify-content: flex-start;

        width: auto;
    }

    .space-project h2 {
        font-size: 32px;
    }

    .space-project .project-content > p:not(.project-type) {
        font-size: 14px;
    }
}

/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.6;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   HEADER
===================================================== */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(8, 9, 13, 0.78);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}


.navbar {

    width: min(90%, var(--max-width));

    height: 75px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* LOGO */

.logo {

    font-size: 1.05rem;

    font-weight: 800;

    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-light);
}


/* NAVIGATION */

.nav-links {

    display: flex;

    align-items: center;

    gap: 35px;

    list-style: none;
}

.nav-links a {

    position: relative;

    color: var(--text-muted);

    font-size: 0.92rem;

    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {

    color: var(--text);
}


/* Ligne sous le lien */

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {

    width: 100%;
}


/* MENU MOBILE */

.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    color: white;

    font-size: 1.7rem;

    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    position: relative;

    min-height: 100vh;

    width: min(90%, var(--max-width));

    margin: auto;

    display: flex;

    align-items: center;

    padding-top: 75px;
}


/* Halo lumineux */

.hero::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: -200px;
    top: 20%;

    background: var(--primary);

    opacity: 0.08;

    filter: blur(160px);

    border-radius: 50%;

    pointer-events: none;
}


.hero-content {

    position: relative;

    max-width: 850px;

    z-index: 2;
}


/* Bonjour */

.hello {

    margin-bottom: 18px;

    color: var(--primary-light);

    font-size: 1rem;

    font-weight: 500;
}


/* NOM */

.hero h1 {

    font-size: clamp(3.5rem, 9vw, 7.5rem);

    line-height: 0.95;

    letter-spacing: -5px;

    font-weight: 800;
     
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}


/* TITRE */

.hero h2 {

    margin-top: 25px;

    font-size: clamp(1.5rem, 3vw, 2.5rem);

    font-weight: 400;

    color: #c7c9d1;
}


/* DESCRIPTION */

.description {

    max-width: 650px;

    margin-top: 25px;

    color: var(--text-muted);

    font-size: 1.08rem;
}


/* =====================================================
   BOUTONS
===================================================== */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 35px;
}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    padding: 14px 21px;

    border-radius: 10px;

    font-size: 0.92rem;

    font-weight: 600;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border 0.3s ease;
}


/* BOUTON PRINCIPAL */

.btn-primary {

    background: var(--text);

    color: #090a0e;
}

.btn-primary:hover {

    transform: translateY(-3px);

    background: var(--primary-light);

    color: white;
}


/* BOUTON SECONDAIRE */

.btn-secondary {

    border: 1px solid var(--border);

    color: var(--text-muted);

    background: rgba(255, 255, 255, 0.025);
}

.btn-secondary:hover {

    transform: translateY(-3px);

    color: white;

    border-color: rgba(255,255,255,0.25);
}


/* =====================================================
   INTRO
===================================================== */

.intro {

    width: min(90%, 700px);

    margin: 0 auto;

    padding: 0 0 120px;

    color: var(--text-muted);
}


.intro-line {

    width: 50px;

    height: 1px;

    margin-bottom: 25px;

    background: var(--primary);
}


/* =====================================================
   PAGE PROJETS
===================================================== */

.projects-header {

    width: min(90%, var(--max-width));

    margin: auto;

    padding-top: 170px;

    padding-bottom: 80px;
}


.section-label {

    color: var(--primary-light);

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 3px;
}


.projects-header h1 {

    margin-top: 15px;

    font-size: clamp(3rem, 7vw, 6rem);

    line-height: 1;

    letter-spacing: -3px;
}


.projects-header > p:last-child {

    max-width: 550px;

    margin-top: 25px;

    color: var(--text-muted);

    font-size: 1.05rem;
}


/* =====================================================
   GRILLE PROJETS
===================================================== */

.projects-grid {

    width: min(90%, var(--max-width));

    margin: auto;

    padding-bottom: 120px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}


/* CARTE */

.project-card {

    position: relative;

    min-height: 390px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--background-light);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease;
}


.project-card:hover {

    transform: translateY(-7px);

    border-color: rgba(139, 92, 246, 0.5);
}


/* Numéro */

.project-number {

    position: absolute;

    top: 25px;
    right: 30px;

    color: rgba(255,255,255,0.08);

    font-size: 4rem;

    font-weight: 800;

    line-height: 1;
}


/* CONTENU */

.project-content {

    position: relative;

    z-index: 2;

    margin-top: auto;
}


.project-type {

    margin-bottom: 12px;

    color: var(--primary-light);

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 2px;
}


.project-card h2 {

    font-size: 1.7rem;

    margin-bottom: 15px;
}


.project-card p {

    max-width: 500px;

    color: var(--text-muted);
}


/* TECHNOLOGIES */

.technologies {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}


.technologies span {

    padding: 5px 10px;

    border: 1px solid var(--border);

    border-radius: 6px;

    color: #b5b8c2;

    font-size: 0.72rem;
}


/* LIEN */

.project-link {

    display: inline-block;

    margin-top: 25px;

    color: white;

    font-size: 0.9rem;

    font-weight: 600;

    transition: color 0.3s ease;
}

.project-link:hover {

    color: var(--primary-light);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    width: min(90%, var(--max-width));

    margin: auto;

    padding: 30px 0;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: var(--text-muted);

    font-size: 0.82rem;
}


.footer-links {

    display: flex;

    gap: 25px;
}


.footer-links a:hover {

    color: white;
}


/* =====================================================
   TABLETTE
===================================================== */

@media (max-width: 850px) {

    .hero h1 {
        letter-spacing: -3px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    /* NAV */

    .navbar {
        height: 65px;
    }

    .menu-toggle {
        display: block;
    }


    .nav-links {

        position: absolute;

        top: 65px;
        left: 0;

        width: 100%;

        padding: 15px 5% 25px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        background: rgba(8, 9, 13, 0.98);

        border-bottom: 1px solid var(--border);

        transform: translateY(-150%);

        transition: transform 0.35s ease;
    }


    .nav-links.open {
        transform: translateY(0);
    }


    .nav-links a {

        display: block;

        padding: 12px;

        text-align: center;
    }


    /* HERO */

    .hero {

        min-height: 100vh;

        padding-top: 100px;
    }


    .hero h1 {

        font-size: clamp(3rem, 15vw, 5rem);

        letter-spacing: -3px;
    }


    .hero h2 {

        font-size: 1.5rem;

        margin-top: 20px;
    }


    .description {

        font-size: 0.98rem;
    }


    /* BOUTONS */

    .hero-buttons {

        flex-direction: column;

        align-items: stretch;
    }


    .btn {
        width: 100%;
    }


    /* INTRO */

    .intro {

        padding-bottom: 80px;
    }


    /* PROJETS */

    .projects-header {

        padding-top: 125px;

        padding-bottom: 55px;
    }


    .projects-header h1 {

        font-size: 3.5rem;

        letter-spacing: -2px;
    }


    .projects-grid {

        padding-bottom: 80px;
    }


    .project-card {

        min-height: 360px;

        padding: 28px;
    }


    /* FOOTER */

    .footer {

        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

}